package controller.service
{
	import model.AnneeEtude;
	import model.proxy.ServiceProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	 
	public class ObtenirListeServicesCommand extends SimpleCommand 
	{ 
		//public static const NAME : String = 'OBTENIR_LISTE_SERVICES_COMMAND';
		 
		/** 
		 * Constructor 
		 */ 
		public function ObtenirListeServicesCommand() 
		{ 
			super(); 
		} 
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{  
			var anneeEtude : AnneeEtude = note.getBody() as AnneeEtude;
			var serviceProxy:ServiceProxy = facade.retrieveProxy(ServiceProxy.NAME) as ServiceProxy; 
			serviceProxy.obtenirListeServices(anneeEtude); 
		} 
	}
}